<!-- $Id: topic_list.htm 14441 2008-04-18 03:09:11Z zhuwenyuan $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<form method="POST" action="" name="listForm">
<!-- start user_bonus list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th width="10%">
        <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
        <a href="javascript:listTable.sort('id'); ">{$lang.record_id}</a>{$sort_id}</th>
      <th width="5%">会员ID</th>
      <th width="10%"><a href="javascript:listTable.sort('user_name'); ">会员名称</a>{$sort_title}</th>
      <th width="10%"><a href="javascript:listTable.sort('email'); ">会员邮箱</a>{$sort_title}</th>
      <th width="10%">会员联系方式</a></th>
      <th width="10%"><a href="javascript:listTable.sort('add_time'); ">报名时间</a>{$sort_add_time}</th>
      <th width="16%">{$lang.handler}</th>
    </tr>
    {foreach from=$enroll_list item=enroll}
    <tr>
      <td><span><input value="{$enroll.id}" name="checkboxes[]" type="checkbox">{$enroll.id}</span></td>
      
      <td>{$enroll.user_id}</td>
      <td><a href="users.php?act=edit&id={$enroll.user_id}">{$enroll.user_name}</a></td>
      <td>{$enroll.email}</td>
      <td>  {if $enroll.mobile_phone}手机：{$enroll.mobile_phone}；{/if}
			{if $enroll.office_phone}办工室电话：{$enroll.office_phone}；{/if}
			{if $enroll.home_phone}家庭电话：{$enroll.home_phone}；{/if}
	</td>
		
      <td>{$enroll.add_time}</td>
      <td align="center">
      <a href="javascript:;" title="{$lang.drop}" onclick="listTable.remove({$enroll.id},'确定要删除此条报名信息吗？','delete_enroll');">{$lang.drop}</a>
    </td>
   
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="11">{$lang.no_records}</td></tr>
    {/foreach}
  </table>

  <table cellpadding="4" cellspacing="0">
    <tr>
      <td><input type="submit" name="drop" id="btnSubmit" value="{$lang.drop}" class="button" disabled="true" />
      </td>
      <td align="right">{include file="page.htm"}</td>
    </tr>
  </table>

{if $full_page}
</div>
<!-- end user_bonus list -->
</form>

<script type="text/javascript" language="JavaScript">
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};
  listTable.query = "enroll_query";

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
    // 开始检查订单
    startCheckOrder();
    document.forms['listForm'].reset();
  }
  
  document.getElementById("btnSubmit").onclick = function()
  {
    if (confirm('确定要删除所选报名信息吗？'))
    {
      document.forms["listForm"].action = "topic.php?act=delete_enroll";
      return;
    }
    else
    {
      return false;
    }
  }
  {/literal}
</script>
{include file="pagefooter.htm"}
{/if}